package day03.HomeWork;

import java.util.Scanner;

/**
 * @description: TODO
 * @author yumo
 * @version: 1.0
 * @date 2025/3/3 18:04
 */
public class homeWork {
    public static void main(String[] args) {
        /**
        //算术、关系运算符——————————————————————————————
        int a=5,b=10,c=15;
        int d=a+b+c;
        System.out.println(d);//30
        int e=c-b;
        System.out.println(e);//5
        int f=a*b;
        System.out.println(f);//50
        int g=c/a;
        System.out.println(g);//3
        int h=b%3;
        System.out.println(h);//1
        int i=b++;//10
        System.out.println(i);
        int j=++b;//12
        System.out.println(j);
        int b1,b2;
        b1=b++;
        System.out.println(b1);//12
        b2=++b;
        System.out.println(b2);//14
        int a3,a4;
        a3=a++;
        System.out.println(a3);//5
        a4=++a;
        System.out.println(a4);//7
        int a1=a--;
        System.out.println(a1);//7
        int a2=--a;
        System.out.println(a2);//5
        //逻辑、赋值运算符——————————————————————————————
        int logic=200;
        int logic2=100;
        boolean logic3=logic>100&&logic2>=200;
        System.out.println(logic3);//false
        boolean logic4=logic<500&&logic2<=150;
        System.out.println(logic4);//true
        boolean logic5=logic<300||logic2>99;
        System.out.println(logic5);//true
        boolean logic6=logic>300||logic2>101;
        System.out.println(logic6);//false
        int assignment1=10;
        int assignment2=15;
        assignment1+=10;
        System.out.println(assignment1);//20
        assignment2-=10;
        System.out.println(assignment2);//5
        assignment1/=5;
        System.out.println(assignment1);//4
        assignment2*=2;
        System.out.println(assignment2);//10
        assignment1%=3;
        System.out.println(assignment1);//1
        //字符串连接、条件————————————————————————————————————
        int shuzi =2;
        int sh=22;
        System.out.println("穿上你的皮大衣"+shuzi+22);
        System.out.println(shuzi + sh +"穿上你的皮大衣");
        int kj=shuzi<10?shuzi:sh;
        System.out.println(kj);//2
        int lk=sh>100?shuzi:sh;
        System.out.println(lk);//22
        **/

        //分支结构——————————————————————————————————————
        int a,c;
        a=10;
        int b=2;
        c=6;
        if (a<=18&&a>0){
            System.out.println("小娃");
        }



        if (b==2){
            System.out.println("男");
        }else {
            System.out.println("女");
        }



        if (0<=a&&a<18){
            System.out.println("未成年");
        }else if (a<=30){
            System.out.println("青年人");
        }else if (a<=50){
            System.out.println("中年人");
        }else if(a<=100){
            System.out.println("老年人");
        }else {
            System.out.println("请重新输入");
        }

        Scanner scan=new Scanner(System.in);

        String name= scan.nextLine();
        switch (name){
            case "丁洋":
                System.out.println("这是狗屎");
                break;
            case "蒲东城":
                System.out.println("黑心老板");
                break;
            case "陈希":
                System.out.println("未来的老板");
                break;
            case "高马杰":
                System.out.println("曹老板在世");
                break;
            default:
                System.out.println("查无此人");
        }
    }
}
